import { StoreTypes } from "@/store/storeType";
import { defineStore } from "pinia";
import { ref } from "vue";
import type { AppUser } from "@/typings/app";
const useAppStore = defineStore(StoreTypes.app, () => {
    // 登录信息
    let appUserRef = ref<AppUser | null>(null);
    function updateAppUser(user: AppUser | null) {
        appUserRef.value = user;
    }
    return { appUserRef, updateAppUser };
});

export { useAppStore };
